package com.ciwong.epaper.modules.epaper.util;

/**
 * @description:避免重复点击工具
 * @author: wyk
 * @time: 2021/6/8 14:41
 */
public class ClickUtil {
    private static long lastClickTime;
    public static boolean isFastDoubleClick() {
        long time = System.currentTimeMillis();
        long timeD = time - lastClickTime;
        if ( 0 < timeD && timeD < 800) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
